<!--
 * @Author: ChengNan 1429323234@qq.com
 * @Date: 2024-09-05 15:04:33
 * @LastEditors: ChengNan 1429323234@qq.com
 * @LastEditTime: 2024-09-05 15:07:01
 * @FilePath: /src/views/0.web-front/7天入门/17.过渡.html
 * @Description: 
-->

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .transition {
      width: 300px;
      height: 100px;
      background-color: pink;
      transition: all 1s linear;
      margin: auto;
    }

    .transition:hover {
      width: 400px;
      height: 300px;
      background-color: skyblue;
    }
  </style>
</head>
<body>
  <div class="transition"></div>
</body>
</html>